ee546dd7c6d959d247faf0cc51f8b54f7452d043,platform/platform-impl/src/com/intellij/openapi/wm/impl/content/TabbedContentTabLabel.java,TabbedContentTabLabel,setTabIcon,#String#JLabel#,150

Before Change


      if (nextTabWithName.getFirst().equals(ContentUtilEx.getTabNameWithoutPrefix(myContent, tabName))) {
        JComponent tab = nextTabWithName.getSecond();
        if (tab instanceof Iconable) {
          jLabel.setIcon(((Iconable)tab).getIcon(Iconable.ICON_FLAG_VISIBILITY));
        }
      }
    }

After Change


      if (nextTabWithName.getFirst().equals(ContentUtilEx.getTabNameWithoutPrefix(myContent, tabName))) {
        JComponent tab = nextTabWithName.getSecond();
        if (tab instanceof Iconable) {
          Icon baseIcon = ((Iconable)tab).getIcon(Iconable.ICON_FLAG_VISIBILITY);
          jLabel.setIcon(isSelected() || baseIcon == null ? baseIcon : new WatermarkIcon(baseIcon, .5f));
        }
      }
    }